from htmltestreport import HTMLTestReport
import unittest
from config import BASE_PATH

if __name__ == '__main__':
    suite = unittest.defaultTestLoader.discover(BASE_PATH+'/scripts','test*')
    runner = HTMLTestReport(BASE_PATH + '/report/p2p.html',title='p2p测试报告')
    runner.run(suite)